import 'package:flutter/material.dart';
import 'package:movie_ui_app/components/genre_card.dart';
import 'package:movie_ui_app/constans.dart';

class Genres extends StatelessWidget {
  const Genres({Key key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    List<String> genres = [
      "Action",
      "Crime",
      "Comedy",
      "Drama",
      "Horror",
      "Animation"
    ];
    return Container(
        margin: EdgeInsets.symmetric(vertical: kDefaultPadding / 2),
        height: 36,
        child: ListView.builder(
            itemCount: genres.length,
            scrollDirection: Axis.horizontal,
            itemBuilder: (context, index) => GenreCard(genre: genres[index])));
  }
}
